/**
 * 游戏玩家
 */
function GameRole(name){
	AutoRole.call(this,name);
	
}
GameRole.prototype = new AutoRole();

//打开骰钟，展示骰子
GameRole.prototype.showDice = function(){
	
	
};
//根据当前喊值得出最小下一次喊的值
GameRole.prototype.getMinChoose = function(){
	
};

//玩家开
GameRole.prototype.open = function(){
	this.log("玩家开");
	if(game.judgeDiceAndCutdonwHP()){//开对了
		game.preLoser = game.autoRole;//电脑本轮输了
	}
	game.judgetHPAndShowResult();
};

GameRole.prototype.hand = function(){
	game.currentHandValue = this.handValue;
	this.log("hand()"+this.handValue);
	UI.showUpWords(this.name,game.getWords(this.handValue[0],this.handValue[1]));
	UI.hideRoll();
	return false;
};